//你的代码将嵌在这里
#include <iostream>
using namespace std;
class Calculator
{
private:
    int count;
public:
    Calculator(int i):count(i){}
    Calculator(){}
    Calculator operator+(const Calculator& p)
    {
        Calculator q;
        q.count=count+p.count;
        return q;
    }
    Calculator operator-(const Calculator& p)
    {
        Calculator q;
        q.count=count-p.count;
        return q;
    }
    void display()
    {
        cout<<"counter number ="<<count<<endl;
    }
};

int main(){
    Calculator a(100),b(200),c,d;
    c=a+b;
    c.display();
    d=b-a;
    d.display();
    return 0;
}